namespace SimpleWebServices.Models
{
    using System.Collections.ObjectModel;
    using System.Xml.Serialization;

    [XmlRoot("notification")]
    public sealed class Notification
    {
        private Collection<Email> _to;

        public Notification()
        {
            this._to = new Collection<Email>();
        }

        [XmlElement("from")]
        public Email From
        {
            get;
            set;
        }

        [XmlArray("to")]
        [XmlArrayItem("recipient")]
        public Collection<Email> To
        {
            get
            {
                return this._to;
            }
        }
    }
}